package com.ruoyi.exam_center_city.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam_center_city.mapper.TbExamCenterCityMapper;
import com.ruoyi.exam_center_city.domain.TbExamCenterCity;
import com.ruoyi.exam_center_city.service.ITbExamCenterCityService;

/**
 * 考点盟市信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbExamCenterCityServiceImpl implements ITbExamCenterCityService 
{
    @Autowired
    private TbExamCenterCityMapper tbExamCenterCityMapper;

    /**
     * 查询考点盟市信息
     * 
     * @param id 考点盟市信息主键
     * @return 考点盟市信息
     */
    @Override
    public TbExamCenterCity selectTbExamCenterCityById(Long id)
    {
        return tbExamCenterCityMapper.selectTbExamCenterCityById(id);
    }

    /**
     * 查询考点盟市信息列表
     * 
     * @param tbExamCenterCity 考点盟市信息
     * @return 考点盟市信息
     */
    @Override
    public List<TbExamCenterCity> selectTbExamCenterCityList(TbExamCenterCity tbExamCenterCity)
    {
        return tbExamCenterCityMapper.selectTbExamCenterCityList(tbExamCenterCity);
    }

    /**
     * 新增考点盟市信息
     * 
     * @param tbExamCenterCity 考点盟市信息
     * @return 结果
     */
    @Override
    public int insertTbExamCenterCity(TbExamCenterCity tbExamCenterCity)
    {
        return tbExamCenterCityMapper.insertTbExamCenterCity(tbExamCenterCity);
    }

    /**
     * 修改考点盟市信息
     * 
     * @param tbExamCenterCity 考点盟市信息
     * @return 结果
     */
    @Override
    public int updateTbExamCenterCity(TbExamCenterCity tbExamCenterCity)
    {
        return tbExamCenterCityMapper.updateTbExamCenterCity(tbExamCenterCity);
    }

    /**
     * 批量删除考点盟市信息
     * 
     * @param ids 需要删除的考点盟市信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamCenterCityByIds(Long[] ids)
    {
        return tbExamCenterCityMapper.deleteTbExamCenterCityByIds(ids);
    }

    /**
     * 删除考点盟市信息信息
     * 
     * @param id 考点盟市信息主键
     * @return 结果
     */
    @Override
    public int deleteTbExamCenterCityById(Long id)
    {
        return tbExamCenterCityMapper.deleteTbExamCenterCityById(id);
    }
}
